<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

//获得商品类型编号
String bgtId = request.getParameter("bgtId");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>商品管理-商品类型-类型属性</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
	<script type="text/javascript">
		var __bgtId = "<%=bgtId %>";
	</script>
	
  </head>
  <body>   
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
       		<input class="mini-button" text="添加类型属性" iconCls="icon-addnew" plain="false" 
	       		onclick="GoodsTypeAttrHandler.addGoodsTypeAttr" visible="false" id="type_attr_add"/>
	       	<input class="mini-button" text="编辑类型属性" iconCls="icon-edit" plain="false" 
	       		onclick="GoodsTypeAttrHandler.editGoodsTypeAttr" visible="false" id="type_attr_edit"/>
	       	<input class="mini-button" text="删除类型属性" iconCls="icon-remove" plain="false" 
	       		onclick="GoodsTypeAttrHandler.delGoodsTypeAttr" visible="false" id="type_attr_del"/>
	       	<input class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false" 
	       		onclick="GoodsTypeAttrHandler.queryGoodsTypeAttr" visible="false" id="type_attr_query"/>
	       	<input class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="GoodsTypeAttrHandler.afresh" visible="false" id="type_attr_refresh"/>
	       	<input class="mini-button" text="返回商品类型" iconCls="icon-btn-return" plain="false" 
	       		onclick="GoodsTypeAttrHandler.returnGoodsTypeList"/>
	    </div>
	    <!-- 查询面板 -->
	    <div id="queryGoodsTypeAttrDiv" class="queryPanel">
	    	<label class="queryPanelLbl">所属商品类型：</label>
	    	<input class="mini-combobox" id="goodsTypeId" textField="bgtName" valueField="bgtId" 
		    	url="<%=path %>/findGoodsTypeJson.do?type=query"/>
	    	<input class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
	    		onclick="GoodsTypeAttrHandler.doQueryGoodsTypeAttr"/>
	    </div>
    </div>
    <div class="mini-fit" id="goodsTypeAttrPanel">
	    <div id="goodsTypeAttrGrid" class="mini-datagrid" fitColumns="true" style="width:100%;height:100%;" 
	    	multiSelect="true" pageSize="20" borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	virtualScroll="true" idField="btaId" url="<%=path %>/getGoodsTypeAttrList.do">
	        <div property="columns">
	        	<div type="checkcolumn" ></div>
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="btaName" name="btaName" width="120" headerAlign="center" allowSort="true">类型属性名称</div>
	            <div field="goodsTypeName" name="goodsTypeName" width="120" headerAlign="center" allowSort="true">商品类型</div>
	            <div field="btaGtype" name="btaGtype" visible="false" headerAlign="center" allowSort="true">商品类型编号</div> 
	            <div field="btaMode" name="btaMode" width="120" headerAlign="center" allowSort="true">属性值录入方式</div>  
	            <div field="btaValue" name="btaValue" width="100%" headerAlign="center" allowSort="true">可选值列表</div>  
	            <div field="btaOrder" name="btaOrder" width="80" headerAlign="center" align="center" allowSort="true">属性排序</div>  
	            <div field="btaState" name="btaState" width="80" headerAlign="center" align="center" allowSort="true">属性状态</div>
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/GoodsTypeAttrHandler.js" type="text/javascript"></script>
</html>
